import java.util.*;

class Student{
public  String stuN;

    public Student(String stuN) {
        this.stuN = stuN;
    }
}
public class Test {
    public static void main(String[] args) {
        Student student1=new Student("240115");
        Student student2=new Student("240115");
        int hashcode1=student1.hashCode()   ;
        int hashcode2=student2.hashCode();
        System.out.println(hashcode1);
        System.out.println(hashcode2);
    }
    public static void main3(String[] args) {
        HashBuck hashBuck=new HashBuck();
        hashBuck.put(10,11);
        hashBuck.put(4,44);
        hashBuck.put(14,1414);
        hashBuck.put(24,2424);
        hashBuck.put(3,33);

        System.out.println(hashBuck.get(14));
    }
    public static void main2(String[] args) {
        Set<String> set=new TreeSet<>();
        set.add("abc");
        set.add("hello");
        set.add("abc");
        System.out.println(set);

        Iterator<String> it= set.iterator();
        while ((it.hasNext())){
            System.out.println(it.next());
        }
    }
    public static void main1(String[] args) {
        Map<String,String> map= new TreeMap<>();





//        Map<String,String> map=new TreeMap<>();
//        map.put("及时雨","宋江");
//        map.put("齐天大圣","孙悟空");
//
//        Set<Map.Entry<String,String>> entries =map.entrySet();
//        //System.out.println(entries);
//
//        for( Map.Entry<String,String> entry:entries){
//            System.out.println(entries);
//        }
//
//        String val=map.get("齐天大圣");
//        System.out.println(val);
//
//        String val2=map.getOrDefault("齐天大圣2","haha");
//        System.out.println(val2);
//
//       String val3= map.remove("齐天大圣");
//        System.out.println(val3);
//
//        Set<String> set=map.keySet();
//        System.out.println(set);

    }
}
